package com.viewshine.webservicedemo.controller;

import com.viewshine.webservicedemo.entity.Dog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName IndexController
 * @Author rhb
 * @Description webservice应用中使用restful
 * @Date 2019-01-16 15:56
 * @Version 1.0
 **/
@RestController
public class IndexController {

    @RequestMapping("rest")
    public Dog rest(){
        return new Dog(1L,"嘟嘟",9,true);
    }

}
